/**
 * @param {string} time
 * @returns {number}
 *
 */
function angle(time) {
    let [h, m] = time.split(':')
    h = Math.abs(h%12)
    let hR = (h / 12 + m / 60 / 12) * 360
    if(hR===360) hR = 0
    let mR = m / 60 * 360
    let res = Math.abs(hR - mR)
    return Math.round(res > 180? 360 - res : res)
}
